
#pragma once

#include "blockage.h"

namespace Blox
{
	class Block;
	class Map
	{
	public:

		Map ( );
		~Map ( );

		void Init( Bounds const & rBounds );

		void Draw ( ) const;

		Block * GetSmallestEncompassingBlock ( AABB const & rObject ) const;


	private:

		enum { MAX_BLOCKAGES=512 };

		// Blockages
		Blockage m_aBlockages[MAX_BLOCKAGES];

		Block * m_pRoot;

	};

}

